<?php  define('IN_DAEM', true); include '../includes/init.php'; $sid = $_GET['sid']; if (!empty($sid)) { $sql = "select sid from ".DB_DAEMDB.".".TB_SUFFIX."hr_student where sid = '".$sid."' limit 1"; $result = $db->query_first($sql); if (empty($result['sid'])) { gourl('未能找到该记录', '', -1); } $sql = "delete from ".DB_DAEMDB.".".TB_SUFFIX."hr_student where sid = '".$sid."'"; $query = $db->query($sql); if ($query) { gourl('删除成功','hr_student_info.php'); } else { gourl('删除失败','', -1); } } else { gourl('访问非法', '', -1); }